package com.wifi.user.dao;

import com.wifi.user.entity.Menu;

import java.sql.SQLException;
import java.util.List;

public interface MenuDao {
    List<Object> selectMenuByUid(int id) throws SQLException;


    long selectCount(String pid) throws SQLException;

    List<Object> selectMenu(Integer pageNum, Integer pageSize, String pid) throws SQLException;

    List<Object> selectFatherMenu() throws SQLException;

    Integer changeStatus(Integer id, Integer status) throws SQLException;

    Long insertMenu(Menu menu) throws SQLException;
    Object selectMenu(String name,Integer role) throws SQLException;

    Object selectMenuByMid(Integer id) throws SQLException;

    Integer updateMenu(Menu menu) throws SQLException;

    long insertUserMenu(Integer uid, Integer mid) throws SQLException;



    Integer DeleteEmptyByid(Integer valueOf) throws SQLException;

}
